<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
    <link rel="stylesheet" href="{$smarty.const.CSS_URL}comment.css"/>
</head>
<body style="background: url('{$smarty.const.IMG_URL}waver.png')">
    <div class="record">
        <div class="record_title">
            {$minfo["username"]}
        </div>
        <div class="record_date">
            {date("y-m-d H:i:s",$minfo["message_time"])}
        </div>
        <div class="record_pic">
            <img src="{$smarty.const.IMG_UPLOAD}{$minfo['message_small_img']}"
                 onclick=this.src='{$smarty.const.IMG_UPLOAD}{$minfo["message_big_img"]}'
                 ondblclick=this.src='{$smarty.const.IMG_UPLOAD}{$minfo["message_small_img"]}'
                 title="单击看大图，双击看小图"/>
        </div>
        <div class="record_content">
            {$minfo["message_introduce"]}
        </div>
    </div>

    <div class="comment">
        <form action="{$smarty.const.__SELF__}" method="post">
            <div class="comment_content">
                <input class="content" type="text" name="comment_inner" maxlength="140" placeholder="请务必输入评论内容，并在140字以内">
            </div>
            <div class="comment_btn">
                <input class="btn" type="submit" value="评论">
            </div>
        </form>
    </div>

    {foreach $cinfo as $k=>$v}
    <div class="comment_info">
        <div class="commenter">
            <a href="{$smarty.const.__CONTROLLER__}/other/user_id/{$v.user_id}">
                {$v.username}
            </a>
             ：{$v.comment_inner}
        </div>
        <div class="comment_date">
            {date("y-m-d H:i:s",$v.comment_time)}
        </div>
        <div class="comment_delete">
            <a href="{$smarty.const.__CONTROLLER__}/del_comment/comment_id/{$v.comment_id}/message_id/{$minfo['message_id']}">
                {if ($v.user_id == $smarty.session.user_id) or (!empty($del))}
                删除
                {/if}
            </a>
        </div>
    </div>
    {/foreach}
    <div class="record_num">
        {$pagelist}
    </div>
</body>
</html>